﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XRpgLibrary.ConversationClasses
{
    class ConversationManager
    {
        #region Field Region
        
        private Dictionary<int, ConversationGroup> conversationGroups;
        private Dictionary<string, PortraitSet> portraits;

        #endregion
        
        #region Property Region
        
        public Dictionary<int, ConversationGroup> ConversationGroups
        {
            get { return conversationGroups; }
        }

        public Dictionary<string, PortraitSet> Portraits
        {
            get { return portraits; }
        }

        #endregion
        
        #region Constructor Region
        
        public ConversationManager()
        {
            conversationGroups = new Dictionary<int, ConversationGroup>();
            portraits = new Dictionary<string, PortraitSet>();
        }
        
        #endregion
        
        #region Method Region
        
        private int GetNextConversationGroupID()
        {
            int max = -1;
            foreach (int groupId in conversationGroups.Keys)
            {
                max = Math.Max(max, groupId);
            }

            return max + 1;
        }

        #endregion
        
        #region Virtual Method region
        #endregion
    }
}
